How to Properly Create a Dictionary in Java